export default {

  namespace: 'public',

  state: {
    list:[123]
  },

  effects: {
    *saveUser({payload}, {put}) {
      console.log(payload)
      yield put({type: 'save', payload})
    },

  },
  reducers: {
    save(state, {payload}) {
      console.log(state,payload)
      return {...state, ...payload};
    }
  },
  subscriptions: {
    save(state, action) {
      return { ...state, ...action.payload };
    },
  },
};
